When commit
25bfe99ed53b5b7 replaced the thin libcanberra wrapper
with the (then) new MetaSoundPlayer API, it missed that the latter
expects files as GFile instead of a file path.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1991>
if (!gicon)
gicon = this._fallbackIconForNotificationData(hints);
- notification.update(summary, body, { gicon,
- bannerMarkup: true,
- clear: true,
- soundFile: hints['sound-file'],
- soundName: hints['sound-name'] });
+ const soundFile = 'sound-file' in hints
+ ? Gio.File.new_for_path(hints['sound-file']) : null;
+
+ notification.update(summary, body, {
+ gicon,
+ bannerMarkup: true,
+ clear: true,
+ soundFile,
+ soundName: hints['sound-name'],
+ });
let hasDefaultAction = false;